<nz-upload nzAction="{{ postUrl | hostUrl }}" nzListType="picture-card" [(nzFileList)]="imageList"
    [nzShowButton]="imageList.length < maxLength" [nzPreview]="handlePreview" (nzChange)="handleChange($event)">
    <i class="ant-icon" nz-icon nzType="plus"></i>
    <div class="ant-upload-text">0-{{maxLength}}张</div>
</nz-upload>
<nz-modal [nzVisible]="previewVisible" [nzContent]="modalContent" [nzFooter]="null"
    (nzOnCancel)="previewVisible = false">
    <ng-template #modalContent>
        <img [src]="previewImage" [ngStyle]="{ 'width': '100%' }" />
    </ng-template>
</nz-modal>